package com.ztsoft.user.pojo.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
public class BaseEntity implements Serializable {

    /**
     * 分页条数
     */
    @TableField(exist = false)
    private long size;
    /**
     * 页码数
     */
    @TableField(exist = false)
    private long mount;

    @JsonIgnore
    public long getSize() {
        return size;
    }

    @JsonIgnore
    public long getMount() {
        return mount;
    }

}